﻿namespace HQS.TokenInterpolation.Tokens
{
    [Token(Name = "repeat")]
    public class Repeat : AbstractToken
    {
        [TokenProperty("this")]
        public string This { get; private set; }

        [TokenProperty("times")]
        public int NumberOfTimes { get; private set; }

        protected override TokenRuntimeValue OnAccept(IDataSourcesVisitor dataSourcesVisitor)
        {
            return dataSourcesVisitor.Visit(this);
        }
    }
}